<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/css/layui.css" tppabs="http://layui/dist/css/layui.css"  media="all">
    <link href="../static/layui/css/layui.css" rel="stylesheet">
</head>
<body>
<ul class="layui-nav">
  <li class="layui-nav-item layui-this"><a href="{{ url_for('index') }}">Home</a></li>
  <li class="layui-nav-item">
    <a href="{{ url_for('hard') }}">服务器信息</a>
  </li>
  <li class="layui-nav-item"><a href="">k8s集群管理</a>
      <dl class="layui-nav-child">
      <dd><a href="{{ url_for('k8s') }}">k8s集群信息</a></dd>
      <dd><a href="{{ url_for('new_deploy') }}">创建Yaml</a></dd>
      <dd><a href="{{ url_for('deploy') }}">预览编辑Yaml</a></dd>
    </dl>

  </li>
  <li class="layui-nav-item">
    <a href="javascript:;">数据中间件</a>
    <dl class="layui-nav-child">
      <dd><a href="{{ url_for('find') }}">Redis</a></dd>
      <dd><a href="{{ url_for('kafkaui') }}">kafka_ui</a></dd>
      <dd><a href="">MongoDB</a></dd>
      <dd><a href="">MySQL</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item">
    <a href="javascript:;">运维自动化</a>
    <dl class="layui-nav-child">
      <dd><a href="{{ url_for('webssh') }}">web_ssh</a></dd>
      <dd class="layui-this"><a href="{{ url_for('crontab') }}">定时任务</a></dd>
      <dd><a href="{{ url_for('mssh') }}">自动化执行</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="{{ url_for('monitor') }}">监控平台</a></li>
  <li  class="layui-nav-item" style="float: right" ><a href="">{{ username }}</a>
      <dl class="layui-nav-child">
      <dd><a href="{{ url_for('logout') }}">注销</a></dd>
    </dl>
  </li>
</ul>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend>Redis实例管理</legend>
</fieldset>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
    <li class="layui-this">数据库基础信息</li>
    <li>新增数据[k/v]</li>
    <li>查询数据</li>
  </ul>
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
        <h3>&nbsp;&nbsp;&nbsp;数据库信息</h3><br>
        <ul>
            <li>&nbsp;&nbsp;&nbsp;node: 10.206.0.7</li>
            <li>&nbsp;&nbsp;&nbsp;port: 6379</li>
            <li>&nbsp;&nbsp;&nbsp;db: 0-15</li>
        </ul>

    </div>
    <div class="layui-tab-item">
        <h3>&nbsp;&nbsp;&nbsp;新建键值</h3><br>
        <form action="/submit"method="post">
        <label>&nbsp;&nbsp;&nbsp;Key：&nbsp</label>
        <input type="text" name="keys" placeholder="keys" ><br><br/>
        <label>&nbsp;&nbsp;&nbsp;Values: </label>
        <input type="text" name="values" placeholder="values"><br><br/>
        <div >&nbsp;&nbsp;&nbsp;<input type="submit" value="提交"></div>
        </form>
    </div>
    <div class="layui-tab-item">
        <h3>&nbsp;&nbsp;&nbsp;查询数据</h3><br>
        <form action="/show"method="post">
        <label>&nbsp;&nbsp;&nbsp;Key：&nbsp</label>
        <input type="text" name="keys" placeholder="keys" ><br><br/>
        <div >&nbsp;&nbsp;&nbsp;<input type="submit" value="提交">&nbsp;&nbsp;&nbsp;<a href="{{ url_for('hello_world') }}">新建k/v</a> </div>

        </form>

        {% block content %}

        {% endblock %}

    </div>
  </div>
<script src="../static/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script>
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
</script>
</body>
</html>